package com.lebang.mapper;

import com.lebang.domain.CencesSdkErrorLog;
import com.lebang.domain.SdkErrorLog;
import com.lebang.example.SdkErrorLogExample;
import com.lebang.model.MemberSdkErrorModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * SdkErrorLogMapper继承基类
 */
@Mapper
public interface SdkErrorLogMapper extends MyBatisBaseDao<SdkErrorLog, Long, SdkErrorLogExample> {
    List<SdkErrorLog> getErrorLogCount(@Param("star") LocalDateTime star,@Param("end") LocalDateTime end,@Param("page")Integer page,@Param("limit")Integer limit);

    List<CencesSdkErrorLog> countByTime(@Param("star") LocalDateTime star,@Param("end") LocalDateTime end);

    List<MemberSdkErrorModel> cencusMemberSdkErrorByDateTime(@Param("star") LocalDateTime starDateTime,@Param("end") LocalDateTime endDateTime);

    List<MemberSdkErrorModel> cencusVersionSdkErrorByDateTime(@Param("star") LocalDateTime starDateTime,@Param("end") LocalDateTime endDateTime);

}